* automated/tramp-tests.el (top):
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 25 Apr 2014 10:35:01 +0000 (12:35 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 25 Apr 2014 10:35:01 +0000 (12:35 +0200)
* automated/file-notify-tests.el (top): Do not disable interactive
passwords in batch mode.
(password-cache-expiry): Set to nil.

test/ChangeLog
test/automated/file-notify-tests.el
test/automated/tramp-tests.el

index 45844607d34adf95d27f6e40483c0549b63c63c0..7d4e9d5e68794b3e1dcb71ce2d88c267da586405 100644 (file)
@@ -1,3 +1,10 @@
+2014-04-25  Michael Albinus  <michael.albinus@gmx.de>
+
+       * automated/tramp-tests.el (top):
+       * automated/file-notify-tests.el (top): Do not disable interactive
+       passwords in batch mode.
+       (password-cache-expiry): Set to nil.
+
 2014-04-24  Michael Albinus  <michael.albinus@gmx.de>
 
        * automated/file-notify-tests.el
index f3ad6dfbe26ac5706db861f32335c31b7d81f08f..d9a5b039216a6b9c10ee7d293d7de6799703b927 100644 (file)
@@ -22,7 +22,7 @@
 ;; Some of the tests require access to a remote host files.  Since
 ;; this could be problematic, a mock-up connection method "mock" is
 ;; used.  Emulating a remote connection, it simply calls "sh -i".
-;; Tramp's file name handler still run, so this test is sufficient
+;; Tramp's file name handlers still run, so this test is sufficient
 ;; except for connection establishing.
 
 ;; If you want to test a real Tramp connection, set
 ;; remote host, set this environment variable to "/dev/null" or
 ;; whatever is appropriate on your system.
 
-;; When running the tests in batch mode, it must NOT require an
-;; interactive password prompt unless the environment variable
-;; $REMOTE_ALLOW_PASSWORD is set.
-
 ;; A whole test run can be performed calling the command `file-notify-test-all'.
 
 ;;; Code:
 (defvar file-notify--test-results nil)
 (defvar file-notify--test-event nil)
 
-(setq tramp-verbose 0
+(setq password-cache-expiry nil
+      tramp-verbose 0
       tramp-message-show-message nil)
 
-;; Disable interactive passwords in batch mode.
-(when (and noninteractive (not (getenv "REMOTE_ALLOW_PASSWORD")))
-  (defalias 'tramp-read-passwd 'ignore))
-
 ;; This shall happen on hydra only.
 (when (getenv "NIX_STORE")
   (add-to-list 'tramp-remote-path 'tramp-own-remote-path))
index 59a7c152a1ae4b30388fc1643a5a388d86ea532b..2640ee9cef5b287240aa6e533eeb14abd8484c8c 100644 (file)
@@ -24,7 +24,7 @@
 ;; Some of the tests require access to a remote host files.  Since
 ;; this could be problematic, a mock-up connection method "mock" is
 ;; used.  Emulating a remote connection, it simply calls "sh -i".
-;; Tramp's file name handler still run, so this test is sufficient
+;; Tramp's file name handlers still run, so this test is sufficient
 ;; except for connection establishing.
 
 ;; If you want to test a real Tramp connection, set
 ;; remote host, set this environment variable to "/dev/null" or
 ;; whatever is appropriate on your system.
 
-;; When running the tests in batch mode, it must NOT require an
-;; interactive password prompt unless the environment variable
-;; $REMOTE_ALLOW_PASSWORD is set.
-
 ;; A whole test run can be performed calling the command `tramp-test-all'.
 
 ;;; Code:
       tramp-copy-size-limit nil
       tramp-message-show-message nil)
 
-;; Disable interactive passwords in batch mode.
-(when (and noninteractive (not (getenv "REMOTE_ALLOW_PASSWORD")))
-  (defalias 'tramp-read-passwd 'ignore))
-
 ;; This shall happen on hydra only.
 (when (getenv "NIX_STORE")
   (add-to-list 'tramp-remote-path 'tramp-own-remote-path))